﻿using Basic.FormModel.DB;
using Basic.FormModel.PhyQuery;
using Basic.FormRemoteModel;

namespace Basic.FormDAL
{
    public interface IPhysicalQueryDAL : IBasicDAL<DBPhysicalQueryLayout, long>
    {
        long Add ( PhyQueryAdd data );
        int GetMaxSort ( long formId, LayoutLocation location );
        PhyQuerySort[] GetSorts ( long formId, LayoutLocation location );
        void SetSort ( KeyValuePair<long, int>[] sort );
        void SetSort ( long id, int sort );
    }
}